package org.gd.hellojson.jackson.serializers;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-09-20 15:13
 */
@XmlEnum(Integer.class)
@JsonSerialize(
        using = XmlValueJsonSerializer.class,
        include = JsonSerialize.Inclusion.NON_NULL)
enum Role {

    @XmlEnumValue("1") ROLE_1,
    @XmlEnumValue("2") ROLE_2
}
